package com.atXiao.strategy;

import com.atXiao.design.PaymentStrategy;

// 实现PayPal支付策略类
public class PayPalStrategy implements PaymentStrategy {
    private String email;
    private String password;

    public PayPalStrategy(String email, String password) {
        this.email = email;
        this.password = password;
    }

    @Override
    public void pay(double amount) {
        System.out.println(amount + " paid with PayPal.");
    }
}